package packet;

import shared.Consts.Priorities;
import client.ClientController;

/**
 *
 * @author Joel Garboden
 */
public class PlayerQuitCmd extends Command
{
  /**
   *
   */
  public PlayerQuitCmd()
  {
    this.priority = Priorities.TURN_UPDATE;
  }

  @Override
  public boolean execCommand(ClientController controller)
  {
    controller.disconnect();
    return true;
  }

  @Override
  public String toString()
  {
    return "playerQuitCmd";
  }
}
